package cn.tedu.spring.eg3;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author Justin Parker
 * @Date 2024/8/3 0003 9:48
 * @Version 1.0
 */
public class TestShopController {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.eg3");
        ShopController shopController = context.getBean(ShopController.class);

        System.out.println("4.使用bean");

        context.close();

    }
}
